home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / Blitz2 / BlitzFaq / FaqLists / Ctrl-c.txt < prev    next >
Encoding:
Text File  |  1996-09-05  |  271 b   |  11 lines

  1. The first thing is to put this line at the start of your program:
  2. #SIGBREAKF_CTRL_C=1 ASL 12
  3. ;And put those lines into the main loop you want to break.
  4.  
  5. If (SetSignal_(0,#SIGBREAKF_CTRL_C) & #SIGBREAKF_CTRL_C)
  6.   Nprint "*** Break"
  7.   END
  8. EndIf
  9.  
  10. ;Very easy and works fine.
  11.